#include "LoopControlInfo.h"

#include <malloc.h>

void* LoopControlInfo::operator new(size_t size, LoopSize_t length) {
    void* data = malloc(size + length);

    return data;
}


void LoopControlInfo::operator delete(void* data, void* placement) {
    free(data);
}



void LoopControlInfo::releaseMemory(LoopControlInfo* pControlInfo) {
    pControlInfo->~LoopControlInfo();

    LoopControlInfo::operator delete(pControlInfo, pControlInfo);
}



